package com.alangyun.remind.repository.algorithm;

/**
 * 专业化能力
 *
 * @class com.alangyun.remind.repository.algorithm.Specification
 * @company 北京诚朗信息技术有限公司
 * @author hoobort klxukun@126.com
 * @datetime 2022年11月23日 下午4:51:02
 *
 */
public enum Specification {
	G("高",2, 0.0, 0.0),
	Z("中",1, 0.0, 0.0),
	D("低",0.5, 0.0, 0.0);


	private String keyCode;
	private double standVal;
	private double minVal;
	private double maxVal;

	private Specification(String k, double standard, double min, double max) {
		this.keyCode = k;
		this.standVal = standard;
		this.minVal = min;
		this.maxVal = max;
	}

	public String key() {
		return keyCode;
	}

	public double standard() {
		return standVal;
	}

	public double min() {
		return minVal;
	}

	public double max() {
		return maxVal;
	}

	public static Specification keyOf(String key) {
		Specification ret=null;
		if(G.key().equals(key))
			ret=G;
		else if(Z.key().equals(key))
			ret=Z;
		else if(D.key().equals(key))
			ret=D;

		return ret;
	}
}
